package com.example.demo.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;


/**
 * 公告通知
 * @author jcong
 *
 * @date: 2018年4月10日 下午4:49:19
 */
@Entity
public class Notice implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -389231565507044276L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long nID;
	
	@Column(columnDefinition="varchar(100) COMMENT '标题'")
	private String title;// 公告标题
	
	@Column(columnDefinition="text COMMENT '内容'")
	private String content;// 公告内容
	
	@Column(columnDefinition="bigint COMMENT '创建时间，毫秒级时间戳，如 1421585369113'")
	private Long updateTime;// 创建时间，毫秒级时间戳，如 1421585369113
	
	@Transient
	private int status;

	public Long getnID() {
		return nID;
	}

	public void setnID(Long nID) {
		this.nID = nID;
	}

	

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	

}
